import request from '@/utils/request'

// 查询统计标识配置列表
export function listDeviceReportConfig(query) {
  return request({
    url: '/report/deviceReportConfig/list',
    method: 'get',
    params: query
  })
}

// 查询统计标识配置详细
export function getDeviceReportConfig(id) {
  return request({
    url: '/report/deviceReportConfig/' + id,
    method: 'get'
  })
}

// 新增统计标识配置
export function addDeviceReportConfig(data) {
  return request({
    url: '/report/deviceReportConfig',
    method: 'post',
    data: data
  })
}

// 修改统计标识配置
export function updateDeviceReportConfig(data) {
  return request({
    url: '/report/deviceReportConfig',
    method: 'put',
    data: data
  })
}

// 删除统计标识配置
export function delDeviceReportConfig(id) {
  return request({
    url: '/report/deviceReportConfig/' + id,
    method: 'delete'
  })
}


// 配置标识下拉列表
export function optionsReportConfig(deviceTypeId) {
  return request({
    url: '/report/deviceReportConfig/optionsReportConfig/'+deviceTypeId,
    method: 'get'
  })
}